package com.example.hms.controller;
import com.example.hms.entity.LiveRecords;
import com.example.hms.service.LiveRecordsService;
import com.example.hms.ulit.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
@RequestMapping("/liveRecords")
public class LiveRecordsController {
    //    动态注入下一层liveRecordsService（服务层）
    @Resource
    private LiveRecordsService Service;
    @RequestMapping(value = "/selectAllLiveRecords",method = RequestMethod.GET)
    public Result selectAllLiveRecords(String customerName, String roomNumber, String identificationCard) {
        return Service.selectAllLiveRecords(customerName,  roomNumber, identificationCard);
    }
}
